package com.hqq.behaviour.memento;

/**
 * StarMementoInternal
 * Created by heqianqian on 2017/6/28.
 */
public class StarMementoInternal implements StarMemento {

    private int ageYears;
    private int massTons;

    private StarType starType;

    public StarMementoInternal() {
    }

    public StarMementoInternal(int ageYears, int massTons, StarType starType) {
        this.ageYears = ageYears;
        this.massTons = massTons;
        this.starType = starType;
    }

    public StarType getStarType() {
        return starType;
    }

    public void setStarType(StarType starType) {
        this.starType = starType;
    }

    public int getAgeYears() {
        return ageYears;
    }

    public void setAgeYears(int ageYears) {
        this.ageYears = ageYears;
    }

    public int getMassTons() {
        return massTons;
    }

    public void setMassTons(int massTons) {
        this.massTons = massTons;
    }

    @Override
    public String toString() {
        return "StarMementoInternal{" +
                "ageYears=" + ageYears +
                ", massTons=" + massTons +
                ", starType=" + starType +
                '}';
    }
}
